home *** CD-ROM | disk | FTP | other *** search
- Path: news.drexel.edu!dunx1!st918h5w
- From: st918h5w@dunx1.ocs.drexel.edu (Jonathan Juniman)
- Newsgroups: comp.lang.c++
- Subject: maddening constructor problem
- Date: 20 Jan 1996 15:50:31 GMT
- Organization: Drexel University
- Message-ID: <4dr307$4so@noc2.drexel.edu>
- NNTP-Posting-Host: dunx1.ocs.drexel.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- Maddening constructor problem:
-
- MYCLASS.H
- class MyClass
- {
- public:
- MyClass(unsigned int i, insigned int j, double* pK);
- // etc
- }
-
- MYCLASS.CPP
- MyClass::MyClass(unsigned int i, unsigned int j, double* pK)
- {
- // constructor code here
- }
-
- Visual C++ bites me on MYCLASS.CPP, saying "constructor not allowed
- a return type". What's the problem? The constructor doesn't _have_
- a return type. Please respond by e-mail.
-
- BTW, I know I've been posting a s**tload of questions. I'll try to
- help others as well, and thanks to all the people who have takenn the time to
- help me.
- Peace,
- Jon
-